config = {
    "windowSize": (800, 600),
    "tiledSize": (20, 20),
    "tiledOffset": (0, 0),
    "playerSize": (10, 10),
    "battleMax": 100,
}

color = {
    "red": (255, 0, 0),
    "yellow": (255, 255, 0),
    "blue": (0, 0, 255),
    "green": (0, 255, 0),
    "black": (0, 0, 0),
    "white": (255, 255, 255),
}

character = {
    "name": "郭靖",
    "hp": 300,  # 生命
    "mp": 100,  # 内力
    "speed": 1,  # 攻速
    "actMin": 10,  # 攻击最小
    "actMax": 10,  # 攻击最大
    "def": 5,  # 防御
    "shield": 0,  # 护盾
    "miss": 10,  # 闪避
    "fightBack": 10,  # 反击
    "beat": 10,  # 暴击
}

equipment = {
    "body": None,
    "weapon": None,
    "treasure": None,
}

package = []

mapData = [
    [00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00],
    [00, 00, 00, 00, 58, 98, 98, 98, 99, 98, 51, 00, 00, 00, 00, 00],
    [00, 00, 00, 00, 98, 00, 00, 00, 00, 00, 98, 00, 00, 00, 00, 00],
    [00, 00, 00, 00, 98, 00, 00, 00, 00, 00, 52, 53, 00, 00, 00, 00],
    [00, 00, 00, 00, 98, 00, 00, 00, 00, 00, 00, 98, 00, 00, 00, 00],
    [00, 00, 00, 00, 57, 98, 98, 98, 98, 56, 00, 98, 00, 00, 00, 00],
    [00, 00, 00, 00, 00, 00, 00, 00, 00, 55, 98, 54, 00, 00, 00, 00],
    [00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00],
]

moveRole = ['right', "down", "left", "up"]
